package com.xlh.virtualization.po;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@ApiModel("剪切板参数")
@Data
public class ClipboardPO {

    /**
     * 剪贴板内容
     */
    @NotBlank(message = "剪切板内容不能为空")
    @Length(max = 20000, message = "字符数不能超过20000个字符")
    private String content;

    @NotNull(message = "任务Id不能为空")
    private Long contextId;
}
